#import <Cocoa/Cocoa.h>


@interface FileItem : NSObject {
	NSString* path;
	NSString* display;
	BOOL saved;
}

- (id)initFromExisting:(FileItem*)fileItem;
- (id)initFromPath:(NSURL*)fileUrl
		   isSaved:(BOOL)savedState;
- (BOOL)writeToFile:(NSError**)anError;
- (BOOL)readFromFile:(NSError**)anError;
+ (NSError*) errorWithDescription:(NSString*)description
						errorCode:(int)eCode
						 filePath:(NSString*)aFilePath;


@property(retain) NSString *path;
@property(retain) NSString *display;
@property(readwrite) BOOL saved;

@end
